package thread;

public class Demo3 {
    public static void main(String[] args) {
        Thread thread = new Thread(){
            @Override
            public void run() {
                while (true){
                    System.out.println("hello thread");
                }
            }
        };
        thread.start();
        while (true){
            System.out.println("hello main");
        }
    }
}
